package com.rran.pf4j.pluginA;

import org.apache.commons.lang.StringUtils;
import org.pf4j.Plugin;
import org.pf4j.PluginWrapper;
import org.pf4j.RuntimeMode;

public class APlugin extends Plugin {
    public APlugin(PluginWrapper wrapper) {
        super(wrapper);
    }

    @Override
    public void start() {
        System.out.println("APlugin.start()");
        if (RuntimeMode.DEVELOPMENT.equals(wrapper.getRuntimeMode())) {
            System.out.println(StringUtils.upperCase("APlugin"));
        }
    }

    @Override
    public void stop() {
        System.out.println("APlugin.stop()");
    }

}
